file(GLOB_RECURSE COMMON_SOURCES
        "*.c"
)

file(GLOB_RECURSE COMMON_HEADERS
        "*.h"
)

add_library(gazelle_common ${COMMON_SOURCES} ${COMMON_HEADERS})

target_include_directories(gazelle_common BEFORE PRIVATE
        ${SOURCE_DIR}/lwip
        ${SOURCE_DIR}/lwip/include
        ${SOURCE_DIR}/lstack/include
)
target_link_libraries(gazelle_common PRIVATE lwip)

target_link_libraries(gazelle_common PRIVATE PkgConfig::dpdk)
#target_include_directories(gazelle_common ${dpdk_INCLUDE_DIRS})
#target_link_libraries(gazelle_common ${dpdk_LIBRARIES})